#include "QChemicalSynapse.h"

QChemicalSynapse::QChemicalSynapse()
{
    type = 6;
    memPot = 0;
    tempMemPot = 0;
    this->setMultiplier(300);
    this->setRelaxTime(2000);
    chemicalModel = new QChemicalSynapseModel;
}

int QChemicalSynapse::getType(void)
{
    return type;
}
void QChemicalSynapse::rotMemPot(void)
{
    chemicalModel->setTS(relaxTime);
    chemicalModel->setNuIn(tempMemPot);
    memPot = multiplier*(chemicalModel->calculateNu());
    tempMemPot = 0;
    emit memPotChanged(memPot);
}
